/*
 * @FilePath: \Src\debug.h
 * @Description:
 *
 * Copyright (c) 2025 by ${w}, All Rights Reserved.
 */

#ifndef __DEBUG_H
#define __DEBUG_H

#define PRINT_DEBUG_ENABLE 1 /* 打印调试信息 */
#define PRINT_ERR_ENABLE 0   /* 打印错误信息 */
#define PRINT_INFO_ENABLE 0  /* 打印个人信息 */

#if PRINT_DEBUG_ENABLE
#define PRINT_DEBUG(fmt, args...)                       \
    do                                                  \
    {                                                   \
        (printf("\r\n[DEBUG] >> "), printf(fmt, ##args)); \
    } while (0)
#else
#define PRINT_DEBUG(fmt, args...)
#endif

#if PRINT_ERR_ENABLE
#define PRINT_ERR(fmt, args...)                       \
    do                                                \
    {                                                 \
        (printf("\r\n[ERR] >> "), printf(fmt, ##args)); \
    } while (0)
#else
#define PRINT_ERR(fmt, args...)
#endif

#if PRINT_INFO_ENABLE
#define PRINT_INFO(fmt, args...)                       \
    do                                                 \
    {                                                  \
        (printf("\r\n[INFO] >> "), printf(fmt, ##args)); \
    } while (0)
#else
#define PRINT_INFO(fmt, args...)
#endif

#endif /* __MAIN_H */
